<%@ page language="java" import="control.database.*" pageEncoding="gb2312"%>

<%
Unit unit = new Unit();

System.out.println("1111111");

unit.setSuntid(request.getParameter("unitid").toString());

System.out.println(request.getParameter("unitid").toString());

String sql1 = unit.Unit_Delete1();
//String sql2 = unit.Unit_Delete2();

System.out.println(sql1);
//System.out.println(sql2);

DataBase db = new DataBase();
db.executeUpdate(sql1);
db.closeStmt();
//db.executeUpdate(sql2);
//db.closeStmt();
db.closeConn();

System.out.println("00000");
//out.println(request.getParameter("txtDptno"));
response.sendRedirect("AddSuccessful.jsp");
%>

